package com.arpgalaxy.generator.utils;

import com.arpgalaxy.generator.entity.Properties;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * @author arpgalaxy
 * @email 13605560342@163.com
 * @date 2021/3/11 0011
 * @Description
 */
public class FileUtils {

    //仅将tempates Path convert To Target Path
    public static Path tempPathToTarget(String path, Properties properties)  {
        Path resut =null;
        if (path != null){
            resut = Paths.get(path.replace(properties.getTemplate().replace("/","\\"), properties.getTarget()));
        }
        return resut;
    }
}
